package org.example.api.goods.goods.controller;

import org.example.api.goods.goods.response.GoodsFatDetailResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
        name = "goods-server",
        contextId = "goods",
        path = "/goods-server"
)
public interface GoodsControllerFeign {
  /**查询商品的详情（这是一个比较重的工作）
   * @param id id
   * @return GoodsFatDetailResponse
   */
  @GetMapping("/goods-manage/goods/id/{id}/fatDetail")
  GoodsFatDetailResponse fatDetail(@PathVariable("id") Long id);

}
